package cn.udinghuo.model.goods.product;

import com.fasterxml.jackson.annotation.JsonSetter;

import org.springframework.util.Assert;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Column;
import cn.udinghuo.core.domain.entity.BaseAuditTenant;	
import java.math.BigDecimal;	
import cn.udinghuo.core.domain.entity.Comment;
import cn.udinghuo.core.domain.entity.ita.CacheKey;
import cn.udinghuo.core.domain.entity.ita.NotIdCache;

/**
 * @author shizm
 *	商品销量
 */
@Entity
@NotIdCache
@Table(name="productsales")
public class ProductSales extends BaseAuditTenant<Long>  {

	private static final long serialVersionUID = -989855745L;
	/**
	* 商品销量count
	*/
	@Comment(value="商品销量")
	@Column(name="count")
	private BigDecimal count;
	/**
	* 商品IDproductId
	*/
	@Comment(value="商品ID")
	@Column(name="productId")
	private Long productId;
	public BigDecimal getCount() {
		return this.count;
	}
	
	public void setCount(BigDecimal value) {
		this.count = value;
	}
	
	@CacheKey
	public Long getProductId() {
		return this.productId;
	}
	
	public void setProductId(Long value) {
		this.productId = value;
	}
	
}
